How To Create A Report

From a Macro you can create a report e.g.

// Create a Throughput report from a macro
var conveyorName = "Conveyor1";
var report = Project.Reports.New("Test");
report.Title = "Throughput measurement at various logging points";
report.Recording = true;
report.SampleRate = 60;
var counter = report.NewDifferenceSinceX();
var conveyor = Project.Equipment.Get(conveyorName);
var watchableDataObject = BCS.Sym3.Factory.CreateWatchableDataObject(Project);
counter.AddWatchedDataObject(watchableDataObject);
watchableDataObject.WatchedObject = conveyor;
watchableDataObject.WatchedPropertyName = "ProductThroughput";
watchableDataObject.WatchedObjectTypeName = "Conveyor";